package com.witte.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.witte.entity.UserRoot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserRootMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserRoot record);

    int insertSelective(UserRoot record);

    UserRoot selectByPrimaryKey(Integer id);
    UserRoot selectUserName();
    List<UserRoot> selectAll();
    List<UserRoot> selectByRule(UserRoot userRoot);

    int updateByPrimaryKeySelective(UserRoot record);

    int updateByPrimaryKey(UserRoot record);

    List<UserRoot> getRecordList(@Param("beginPage") Integer beginPage,@Param("pageSize") Integer pageSize);
    int getRecordCount();


}